package com.woniuxy.carlife.carlifecomprehensiveweb.config;

import com.woniuxy.carlife.carlifecomprehensiveweb.util.MinioTemplate;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.annotation.Resource;

/**
 * @ClassName: BaseConfig
 * @ Description:（说明用中文）
 * @author: yanzhongliang     
 * @date: Update in 15:03 2021/4/8
 */

@Configuration
public class BaseConfig {

    @Resource
    private MinioConfig mc;
    @Bean
    public MinioTemplate createMinioTemplate(){
        MinioTemplate mt=new MinioTemplate(mc);
        return mt;
    }
}
